package com.glsc.ngateway.opmanage.service.report;

import com.glsc.ngateway.common.base.domain.mysql.opmanage.report.FileUploadLog;
import com.glsc.ngateway.common.base.repo.mysql.opmanage.report.FileUploadLogRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(transactionManager = "transactionManagerMysql")
public class FileUploadService {
    @Autowired
    private FileUploadLogRepository fileUploadLogRepository;

    @Transactional
    public FileUploadLog saveUploadLog(FileUploadLog fileUploadLog){
        fileUploadLogRepository.save(fileUploadLog);
        return fileUploadLog;
    }
}
